
#ifndef RUNLOG_H
#define RUNLOG_H

#define RUNLOG_DEBUG    0
#define RUNLOG_INFO     1
#define RUNLOG_ERROR    2

#define RUNLOG_TYPE_SCREEN          1
#define RUNLOG_TYPE_FILE            2
#define RUNLOG_TYPE_SCR_AND_FILE    3


typedef struct runlog_info_struct runlog_info_t;
struct runlog_info_struct
{
    uint32  level;
    uint32  print_type;

};


void
runlog_sys_init();


void
runlog_sys_destroy();

void
runlog_error(
    schar*  _file,
    schar*  _func,
    uint32  _line,
    schar*  fmt,
    ...
);

#define LT_ERROR(fmt, ...) \
{\
    runlog_error(__FILE__, __FUNCTION__, __LINE__, fmt, ##__VA_ARGS__);\
}


#endif // #ifndef RUNLOG_H